package com.getaway.getaway.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GatewayConfig {
	public static final long DEFAULT_TIMEOUT = 30000;

	public static String NACOS_SERVER_ADDR;

	public static String NACOS_NAMESPACE;

	public static String NACOS_ROUTE_DATA_ID="getaway";

	public static String NACOS_ROUTE_GROUP;

	@Value("${spring.cloud.nacos.discovery.server-addr}")
	public void setNacosServerAddr(String nacosServerAddr){
		NACOS_SERVER_ADDR = nacosServerAddr;
	}

	@Value("${spring.cloud.nacos.discovery.namespace}")
	public void setNacosNamespace(String nacosNamespace){
		NACOS_NAMESPACE = nacosNamespace;
	}

	@Value("${spring.cloud.nacos.config.group}")
	public void setNacosRouteGroup(String nacosRouteGroup){
		NACOS_ROUTE_GROUP = nacosRouteGroup;
	}
}
